/**
 * @msg 页面参数
 * @btnPermissions
 * @buttonId-1 查询
 * @buttonId-2 添加
 * @buttonId-3 编辑
 * @buttonId-4 删除
 * @buttonId-5 导入
 * @buttonId-6 导出
 * @buttonId-7 查看
 * @buttonId-8 重置
 * @buttonId-101 绑定伙食单位
 * @buttonId-102 导入原料供应信息
 * @buttonId-103 取消发布
 *
 * @mask 多个同类型功能buttonId 为二位数 eg: 两个添加 10 11
 */
import { businessPageInfo } from './business'
export const pageInfo = [
	...businessPageInfo,
	/**
	 * 食堂就餐管理
	 *
	 * */
	{
		pagePath:
			'view/menu/businessAccountingParent/expenseCollectionReport/index.vue',
		btnPermissions: []
	},
	{
		pagePath:
			'view/menu/businessAccountingParent/accountingStatements/index.vue',
		btnPermissions: []
	},
	{
		pagePath: 'view/menu/statisticalAnalysis/warehouseStatistics/index.vue',
		btnPermissions: []
	},
	{
		pagePath: 'view/menu/reportingManagement/reportHistory/index.vue',
		btnPermissions: []
	},
	{
		pagePath: 'view/baseManage/ingredientsManage/index.vue',
		btnPermissions: [
			{
				buttonName: '添加',
				buttonId: 20,
				apiUrl: ''
			},
			{
				buttonName: '编辑',
				buttonId: 30,
				apiUrl: ''
			},
			{
				buttonName: '删除',
				buttonId: 40,
				apiUrl: ''
			},
			{
				buttonName: '导入食材',
				buttonId: 50,
				apiUrl: ''
			},
			// {
			//   buttonName: '导入副食筹措原料',
			//   buttonId: 60,
			//   apiUrl: '',
			// },
			// {
			//   buttonName: '导入食材别名',
			//   buttonId: 70,
			//   apiUrl: '',
			// },
			{
				buttonName: '营养匹配',
				buttonId: 80,
				apiUrl: ''
			}
		]
	},
	{
		pagePath: 'view/baseManage/canteen/index.vue',
		btnPermissions: [
			{
				buttonName: '编辑',
				buttonId: 30,
				apiUrl: ''
			},
			{
				buttonName: '删除',
				buttonId: 40,
				apiUrl: ''
			}
		]
	},
	{
		pagePath: 'view/baseManage/organization/index.vue',
		btnPermissions: [
			{
				buttonName: '添加',
				buttonId: 20,
				apiUrl: ''
			},
			{
				buttonName: '删除',
				buttonId: 40,
				apiUrl: ''
			}
		]
	},
	{
		pagePath:
			'view/menu/baseManage/localdishesModule/localdishesList/localdishesList.vue',
		btnPermissions: [
			{
				buttonName: '编辑',
				buttonId: 30,
				apiUrl: ''
			},
			{
				buttonName: '删除',
				buttonId: 40,
				apiUrl: ''
			},
			{
				buttonName: '导入',
				buttonId: 50,
				apiUrl: ''
			},
			{
				buttonName: '导出',
				buttonId: 60,
				apiUrl: ''
			},
			{
				buttonName: '营养详情/营养匹配',
				buttonId: 70,
				apiUrl: ''
			}
		]
	},

	// 餐厅服务-配餐模式
	{
		pagePath: 'view/menu/cateringManageNew/cateringManageNew.vue',
		btnPermissions: [
			{
				buttonName: '添加',
				buttonId: 20,
				apiUrl: ''
			},
			{
				buttonName: '修改',
				buttonId: 30,
				apiUrl: ''
			},
			{
				buttonName: '删除',
				buttonId: 40,
				apiUrl: ''
			},
			{
				buttonName: '查看',
				buttonId: 70,
				apiUrl: ''
			}
		]
	},
	/**
	 * 业务查询
	 * */
	/**
	 * 业务查询 - 作业规划查询
	 * */
	{
		pagePath: 'view/menu/dataQuery/assignmentPlanning/assignmentPlanning.vue',
		btnPermissions: []
	},
	/**
	 * 业务查询 - 食谱模板
	 * */
	{
		pagePath: 'view/menu/dataQuery/cookbookTemplate/cookbookTemplate.vue',
		btnPermissions: [

		]
	},
	/**
	 * 能效保障
	 * */
	/**
	 * 能效保障 - 保障评价台账
	 * */
	{
		pagePath:
			'view/menu/energyEfficiency/guaranteeEvaluation/guaranteeEvaluation.vue',
		btnPermissions: []
	},
	/**
	 * 食安监管
	 * */
	/**
	 * 食安监管 - 消毒台账
	 * */
	{
		pagePath:
			'view/menu/foodSafetySupervision/disinfectAccount/disinfectAccount.vue',
		btnPermissions: []
	},
	/**
	 * 食安监管 - 留样台账
	 * */
	{
		pagePath: 'view/menu/foodSafetySupervision/samplesDaily/samplesDaily.vue',
		btnPermissions: []
	},
	/**
	 * 食安监管 - 废弃物录入
	 * */
	{
		pagePath: 'view/menu/foodSafetySupervision/waste/waste.vue',
		btnPermissions: []
	},
	/**
	 * 食安监管 - 安全卫生检查录入
	 * */
	{
		pagePath: 'view/menu/foodSafetySupervision/safetyHealth/safetyHealth.vue',
		btnPermissions: []
	},
	/**
	 * 食安监管 - 添加剂使用录入
	 * */
	{
		pagePath: 'view/menu/foodSafetySupervision/additiveUsage/additiveUsage.vue',
		btnPermissions: []
	},
	/**
	 * 食安监管 - 晨检自查录入
	 * */
	{
		pagePath: 'view/menu/foodSafetySupervision/morningCheck/morningCheck.vue',
		btnPermissions: []
	},
	/**
	 * 食安监管 - 火情预警台账
	 * */
	{
		pagePath: 'view/menu/foodSafetySupervision/fireWarning/fireWarning.vue',
		btnPermissions: []
	},
	/**
	 * 资产管理
	 * */
	/**
	 * 设备维护
	 * */
	{
		pagePath:
			'view/menu/propertyManage/deviceMaintenance/deviceMaintenance.vue',
		btnPermissions: []
	},
	/**
	 * 维保记录
	 * */
	{
		pagePath:
			'view/menu/propertyManage/maintenanceRecord/maintenanceRecord.vue',
		btnPermissions: []
	},
	/**
	 * 基础信息 - 基础数据管理 - 菜肴管理
	 * */
	{
		pagePath:
			'view/menu/basicInformation/basicData/cuisineManagement/cuisineManagement.vue',
		btnPermissions: [
			{
				buttonName: '添加',
				buttonId: 20,
				apiUrl: ''
			},
			{
				buttonName: '编辑',
				buttonId: 30,
				apiUrl: ''
			},
			{
				buttonName: '删除',
				buttonId: 40,
				apiUrl: ''
			},
			{
				buttonName: '导入',
				buttonId: 50,
				apiUrl: ''
			}
		]
	},
	/**
	 * 基础信息 - 基础数据管理 - 供应商管理
	 * */
	{
		pagePath:
			'view/menu/basicInformation/basicData/supplierManage/supplierManage.vue',
		btnPermissions: [
			{
				buttonName: '添加',
				buttonId: 20,
				apiUrl: ''
			},
			{
				buttonName: '编辑',
				buttonId: 30,
				apiUrl: ''
			},
			{
				buttonName: '禁用',
				buttonId: 40,
				apiUrl: ''
			},
			{
				buttonName: '导入',
				buttonId: 50,
				apiUrl: ''
			}
		]
	},
	/**
	 * 基础信息 - 基础数据管理 - 供应信息管理
	 * */
	{
		pagePath:
			'view/menu/basicInformation/basicData/supplyInformationManage/supplyInformationManage.vue',
		btnPermissions: [
			{
				buttonName: '添加',
				buttonId: 20,
				apiUrl: ''
			},
			{
				buttonName: '导入',
				buttonId: 30,
				apiUrl: ''
			},
			{
				buttonName: '删除',
				buttonId: 40,
				apiUrl: ''
			}
			// {
			//   buttonName: '解析供应信息生成Excel',
			//   buttonId: 50,
			//   apiUrl: '',
			// },
		]
	},
	/**
	 * 基础信息 - 基础数据管理 - 商品类型维护
	 * */
	{
		pagePath:
			'view/menu/basicInformation/basicData/commodityTypeMaintenance/commodityTypeMaintenance.vue',
		btnPermissions: [
			{
				buttonName: '添加',
				buttonId: 20,
				apiUrl: ''
			},
			{
				buttonName: '编辑',
				buttonId: 30,
				apiUrl: ''
			},
			{
				buttonName: '删除',
				buttonId: 40,
				apiUrl: ''
			},
			{
				buttonName: '禁用',
				buttonId: 50,
				apiUrl: ''
			}
		]
	},
	/**
	 * 基础信息 - 基础数据管理 - 商品类型维护
	 * */
	{
		pagePath:
			'view/menu/basicInformation/basicData/historyPrice/historyPrice.vue',
		btnPermissions: []
	},
	/**
	 * 基础信息 - 标准劳动营养强度表
	 * */
	{
		pagePath:
			'view/menu/basicInformation/standardStrength/standardStrength.vue',
		btnPermissions: []
	},
	/**
	 * 基础信息 - 标准营养库
	 * */
	{
		pagePath:
			'view/menu/basicInformation/standardNourishment/standardNourishment.vue',
		btnPermissions: []
	},
	/**
	 * 上报管理 - 采购计划查看
	 * */
	{
		pagePath:
			'view/menu/reportingManagement/procurementPlan/procurementPlan.vue',
		btnPermissions: [
			{
				buttonName: '审核',
				buttonId: 20,
				apiUrl: ''
			}
		]
	},
	/**
	 * 数据查询 - 物资管理查询
	 * */
	{
		pagePath: 'view/menu/dataQuery/materialManagement/index.vue',
		btnPermissions: []
	},
	/**
	 * 上报管理 - 食谱查看
	 * */
	{
		pagePath: 'view/menu/reportingManagement/recipeViewing/recipeViewing.vue',
		btnPermissions: []
	},
	/**
	 * 统计分析 - 伙食费分析
	 * */
	{
		pagePath: 'view/menu/statisticalAnalysis/mealExpenses/index.vue',
		btnPermissions: []
	},
	/**
	 * 统计分析 - 食物定量分析
	 * */
	{
		pagePath: 'view/menu/statisticalAnalysis/foodQuantification/index.vue',
		btnPermissions: []
	},
	/**
	 * 统计分析 - 价格指数
	 * */
	{
		pagePath: 'view/menu/statisticalAnalysis/priceIndex/index.vue',
		btnPermissions: []
	},
	/**
	 * 统计分析 - 重点食材价格指数波动
	 * */
	{
		pagePath: 'view/menu/statisticalAnalysis/keyIngredients/index.vue',
		btnPermissions: []
	},
	// 菜单
	{
		pagePath: 'view/menu/systemManage/menuManage/menuManage.vue',
		btnPermissions: [
			{
				buttonName: '查询',
				buttonId: 10,
				apiUrl: ''
			},
			{
				buttonName: '添加',
				buttonId: 20,
				apiUrl: ''
			},
			{
				buttonName: '编辑',
				buttonId: 30,
				apiUrl: ''
			},
			{
				buttonName: '删除',
				buttonId: 40,
				apiUrl: ''
			}
		]
	},
	// 用户
	{
		pagePath: 'view/menu/systemManage/userManage/userManage.vue',
		btnPermissions: [
			{
				buttonName: '查询',
				buttonId: 10,
				apiUrl: ''
			},
			{
				buttonName: '添加',
				buttonId: 20,
				apiUrl: ''
			},
			{
				buttonName: '编辑',
				buttonId: 30,
				apiUrl: ''
			},
			{
				buttonName: '禁用',
				buttonId: 40,
				apiUrl: ''
			},
			{
				buttonName: '重置密码',
				buttonId: 50,
				apiUrl: ''
			}
		]
	},
	//
	{
		pagePath: 'view/menu/systemManage/defaultRoleManage/defaultRoleManage.vue',
		btnPermissions: [
			{
				buttonName: '查询',
				buttonId: 10,
				apiUrl: ''
			},
			{
				buttonName: '添加',
				buttonId: 20,
				apiUrl: ''
			},
			{
				buttonName: '编辑',
				buttonId: 30,
				apiUrl: ''
			},
			{
				buttonName: '删除',
				buttonId: 40,
				apiUrl: ''
			}
		]
	},
	{
		pagePath: 'view/menu/systemManage/roleManage/roleManage.vue',
		btnPermissions: [
			{
				buttonName: '查询',
				buttonId: 10,
				apiUrl: ''
			},
			{
				buttonName: '添加',
				buttonId: 20,
				apiUrl: ''
			},
			{
				buttonName: '编辑',
				buttonId: 30,
				apiUrl: ''
			},
			{
				buttonName: '删除',
				buttonId: 40,
				apiUrl: ''
			}
		]
	}
]
const systemCode = localStorage.getItem('systemCode')
export default {
	/**
	 * @description 配置显示在浏览器标签的title
	 */
	title: systemCode == 'business' ? '智厨业务管理系统' : '伙食保障精细管理系统',
	/**
	 * @description token在Cookie中存储的天数，默认1天
	 */
	cookieExpires: 1,
	/**
	 * @description 是否使用国际化，默认为false
	 *              如果不使用，则需要在路由中给需要在菜单中展示的路由设置meta: {title: 'xxx'}
	 *              用来在菜单中显示文字
	 */
	useI18n: false,
	/**
	 * @description 默认打开的首页的路由name值，默认为home
	 */
	homeName: 'home',
	/**
	 * @description 需要加载的插件
	 */
	plugin: {
		'error-store': {
			showInHeader: false, // 设为false后不会在顶部显示错误日志徽标
			developmentOff: false // 设为true后在开发环境不会收集错误信息，方便开发中排查错误
		}
	}
}
